package com.stony.core.struts.tag;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

import org.apache.struts.taglib.TagUtils;

import com.eaoa.vo.pub.PubAccount;

public class MyHrUnitsTag extends TagSupport {


	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	protected String id = null;
	
	/**
	 * itemcode
	 */
	private String property = null;


	protected String scope = null;

	public int doEndTag() throws JspException {

	
		if(property == null){
			property = "";
		}
		
		PubAccount employee = (PubAccount) TagUtils.getInstance().lookup(pageContext, "Employee", "session");

//		GetUnitsBO getUnitsBO = new GetUnitsBO(employee,property);
//		getUnitsBO.execute();

//		pageContext.setAttribute(id, getUnitsBO.getHrUnitsList(),PageContext.PAGE_SCOPE);
		return (EVAL_PAGE);
	}

	public void release() {

		id = null;
		property = null;
		scope = null;

	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	

	public String getScope() {
		return scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}

	

	public String getProperty() {
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}


}
